<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}


    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pinyin_all" class="control-label col-xs-12 col-sm-2">{:__('PinyinAll')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pinyin_all" data-rule="required" class="form-control" name="row[pinyin_all]" type="text" value="{$row.pinyin_all}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_jieshi" class="control-label col-xs-12 col-sm-2">{:__('EnJieshi')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_jieshi" data-rule="required" class="form-control" name="row[en_jieshi]" type="text" value="{$row.en_jieshi}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-check_oldpic" class="control-label col-xs-12 col-sm-2">{:__('Pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-check_oldpic" class="form-control" size="35" name="row[pic]" type="text" value="{$row.pic}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-check_oldpic" class="btn btn-danger faupload" data-input-id="c-check_oldpic" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-check_oldpic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-check_oldpic" class="btn btn-primary fachoose" data-input-id="c-check_oldpic" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-check_oldpic"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="text" value="{$row.weigh}" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recommend')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[recommend]', ['0'=>__('Recommend0'), '1'=>__('Recommend1')],$row['recommend'])}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
